package com.mzj.saas.jobs.lifePay.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * 支付记录
 */
@Entity
@Table(name = "saas_house_payment_order")
public class HousePaymentOrder {
    @Id
    @Basic
    @Column(name = "order_number", nullable = true)
    private String orderNumber; //支付订单编号

    /**
     * 账单总金额
     */
    @Basic
    @Column(name = "bill_amount", nullable = true)
    private Integer billAmount;

    /**
     * 平台手续费
     */
    @Basic
    @Column(name = "platform_commission_amount", nullable = true)
    private Integer platformCommissionAmount;

    /**
     * 微信手续费
     */
    @Basic
    @Column(name = "wx_commission_amount", nullable = true)
    private Integer wxCommissionAmount;

    /**
     * 支付总金额
     */
    @Basic
    @Column(name = "total_amount", nullable = true)
    private Integer totalAmount;

    /**
     * 付款人id
     */
    @Basic
    @Column(name = "pay_user_id", nullable = true)
    private String payUserId;

    /**
     * 支付类型：1微信 2支付宝
     */
    @Basic
    @Column(name = "pay_type", nullable = true)
    private Integer payType;

    /**
     * 支付方式：1本人支付、2代付
     */
    @Basic
    @Column(name = "pay_mode", nullable = true)
    private Integer payMode;

    /**
     * 支付结果：1支付成功 2支付失败
     */
    @Basic
    @Column(name = "pay_result", nullable = true)
    private Integer payResult;

    /**
     * 支付时间
     */
    @Basic
    @Column(name = "pay_time", nullable = true)
    private Date payTime;

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getBillAmount() {
        return billAmount;
    }

    public void setBillAmount(Integer billAmount) {
        this.billAmount = billAmount;
    }

    public Integer getPlatformCommissionAmount() {
        return platformCommissionAmount;
    }

    public void setPlatformCommissionAmount(Integer platformCommissionAmount) {
        this.platformCommissionAmount = platformCommissionAmount;
    }

    public Integer getWxCommissionAmount() {
        return wxCommissionAmount;
    }

    public void setWxCommissionAmount(Integer wxCommissionAmount) {
        this.wxCommissionAmount = wxCommissionAmount;
    }

    public Integer getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getPayUserId() {
        return payUserId;
    }

    public void setPayUserId(String payUserId) {
        this.payUserId = payUserId;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Integer getPayMode() {
        return payMode;
    }

    public void setPayMode(Integer payMode) {
        this.payMode = payMode;
    }

    public Integer getPayResult() {
        return payResult;
    }

    public void setPayResult(Integer payResult) {
        this.payResult = payResult;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }
}
